<?php

namespace Entity;

class Auth extends \Home {

    /**
     * 权限操作
     */
    const AUTH = 'auth';

    /**
     * 查看用户
     */
    const ACCOUNT_SHOW = 'account_show';

    /**
     * 添加用户
     */
    const ACCOUNT_ADD = 'account_add';

    public function __construct() {

    }

    public function getRoleList() {
        $result = [
            '权限管理' => [
                '权限管理' => self::AUTH,
            ],
            '账户管理' => [
                '查看账户列表' => self::ACCOUNT_SHOW,
                '账户添加' => self::ACCOUNT_ADD,
            ]
        ];

        return $result;
    }

}